package com.hxc.apply.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.hxc.common.annotation.Excel;
import com.hxc.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 在线办理应用信息对象 t_apply_info
 * 
 * @author hxc
 * @date 2021-08-16
 */
public class TApplyInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;
    /** 上级id(父级为0) */
    @Excel(name = "上级id(父级为0)")
    private Long parentId;
    /** 名称 */
    @Excel(name = "名称")
    private String applyName;
    /** 名称 */
    @Excel(name = "应用路径")
    private String applyUrl;
    /** 图片 */
    @Excel(name = "图片")
    private String applyImg;
    /** 排序 */
    @Excel(name = "排序")
    private Integer ordering;
    /** 状态 */
    @Excel(name = "状态")
    private Integer applyStatus;
    /** 子菜单集合 */
    @TableField(exist = false)
    private List<TApplyInfo> appluSonList;

    public void setId(Long id) 
    {
        this.id = id;
    }
    public Long getId() 
    {
        return id;
    }

    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }
    public Long getParentId() 
    {
        return parentId;
    }

    public void setApplyName(String applyName) 
    {
        this.applyName = applyName;
    }
    public String getApplyName() 
    {
        return applyName;
    }

    public void setApplyImg(String applyImg) 
    {
        this.applyImg = applyImg;
    }
    public String getApplyImg()
    {
        return applyImg;
    }

    public String getApplyUrl() {
        return applyUrl;
    }
    public void setApplyUrl(String applyUrl) {
        this.applyUrl = applyUrl;
    }

    public void setOrdering(Integer ordering) 
    {
        this.ordering = ordering;
    }
    public Integer getOrdering() 
    {
        return ordering;
    }

    public void setApplyStatus(Integer applyStatus) 
    {
        this.applyStatus = applyStatus;
    }
    public Integer getApplyStatus() 
    {
        return applyStatus;
    }

    public List<TApplyInfo> getAppluSonList() {
        return appluSonList;
    }
    public void setAppluSonList(List<TApplyInfo> appluSonList) {
        this.appluSonList = appluSonList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("applyName", getApplyName())
            .append("applyImg", getApplyImg())
            .append("ordering", getOrdering())
            .append("applyStatus", getApplyStatus())
            .append("createTime", getCreateTime())
            .append("applyUrl", getApplyUrl())
            .toString();
    }
}
